package com.xbongbong.saas.enums.business;

import com.xbongbong.i18n.util.I18nMessageUtil;
import lombok.Getter;

/**
 * 合同关联产品待出库状态
 *
 * @author ruansicheng
 * @date 2022/3/13 10:57
 * @since V1.0
 */
@Getter
public enum WaitOutStockStatusEnum {
    // 待出库状态
    NORMAL(0, "enum.archived.name.archived", "NORMAL"),
    UNUSUAL(1, "enum.archived.name.un_archived", "UNUSUAL"),
            ;

    private int code;
    private String name;
    private String attr;

    WaitOutStockStatusEnum(int code, String name, String attr) {
        this.code = code;
        this.name = name;
        this.attr = attr;
    }

    public String getName() {
        return I18nMessageUtil.getMessage(name);
    }
}
